package cn.marinda.entity;

import lombok.Data;

import javax.swing.*;
import java.util.ArrayList;
import java.util.List;

/**
 * 源组件
 *
 * @author marinda
 * @date 2022/07/14
 */
@Data
public class ComponentSource {
    private JLabel label;
    private JComponent component;
//    储存多个单选按钮或其他多个组件
    private List<JComponent> componentList = new ArrayList<>();
    public ComponentSource(JLabel label, JComponent component) {
        this.label = label;
        this.component = component;
    }

    public ComponentSource(JLabel label,List<JComponent> componentList){
        this.label = label;
        this.componentList = componentList;
    }
}
